package com.foreknow.demo11;

public class Cat extends Animal {


    public Cat(String name, int legNum) {
        super(name, legNum);
    }

    @Override
    public void shout() {
//        this.setName("加菲猫");
        System.out.println(this.getName()+"喵喵喵"+this.getLegNum());

    }
}
